package ioc;

/**
 * @program: spring-demo1
 * @author: JCM
 * @create: 2023-06-11 12:59
 * @description:
 **/
public class Car {
    private Framework framework;

    public Car(Framework framework) {
        this.framework = framework;
    }

    public void init() {
        // 依赖于车身
        System.out.println("汽车");
        framework.init();
    }
}
